package com.ybxx.asset.model;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.apache.commons.lang.StringUtils;

import com.ybxx.core.model.BaseModel;

@Entity
@Table(name="tbl_asset_nightlife")
public class NightLife extends BaseModel {
	@Id
	private String nlid;
	@ManyToOne(targetEntity=Company.class,fetch=FetchType.LAZY)
	@JoinColumn(name="cid",referencedColumnName="cid") 
	private Company company;
	private String tdzh;
	private String nlname;
	private String addr;
	private String area;
	private String zdh;
	private String netbookvalue;
	private String szdj;
	private String ywzy;
	private String content;
	public String getNlid() {
		return nlid;
	}
	public void setNlid(String nlid) {
		this.nlid = nlid;
	}
	public Company getCompany() {
		return company;
	}
	public void setCompany(Company company) {
		this.company = company;
	}
	public String getTdzh() {
		return tdzh;
	}
	public void setTdzh(String tdzh) {
		this.tdzh = tdzh;
	}
	public String getNlname() {
		return nlname;
	}
	public void setNlname(String nlname) {
		this.nlname = nlname;
	}
	public String getAddr() {
		return addr;
	}
	public void setAddr(String addr) {
		this.addr = addr;
	}
	public String getArea() {
		return area;
	}
	public void setArea(String area) {
		if(StringUtils.isNotEmpty(area)){
			this.area = area;
		}
	}
	public String getZdh() {
		return zdh;
	}
	public void setZdh(String zdh) {
		this.zdh = zdh;
	}
	public String getNetbookvalue() {
		return netbookvalue;
	}
	public void setNetbookvalue(String netbookvalue) {
		if(StringUtils.isNotEmpty(netbookvalue)){
			this.netbookvalue = netbookvalue;
		}
	}
	public String getSzdj() {
		return szdj;
	}
	public void setSzdj(String szdj) {
		this.szdj = szdj;
	}
	public String getYwzy() {
		return ywzy;
	}
	public void setYwzy(String ywzy) {
		this.ywzy = ywzy;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	
	
	
}
